//
//  DropDownMenu2.h
//  ChatDemo-UI2.0
//
//  Created by syun on 16/7/8.
//  Copyright © 2016年 syun. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DropDownMenu2;
@protocol DropDownMenu2Delegate
@optional;
- (void) niDropDownDelegateMethod:(DropDownMenu2 *) sender;

/**
 *  点击背景隐藏这个view的事件
 */
- (void) taptoRemoveViewWithSenderTag:(NSInteger)senderTag;

@end
@interface DropDownMenu2 : UIControl<UITableViewDelegate, UITableViewDataSource,UIGestureRecognizerDelegate>
{
    CGRect btn;
    NSArray * cellContents;
    UITapGestureRecognizer *tap;
    CGFloat cellWidth;
}
@property (nonatomic, weak) id delegate;
@property (nonatomic, strong) UITableView *table;
@property (nonatomic, strong) NSString * selectedTitle;
@property (nonatomic, strong) NSString * keyOfTitle;
@property (nonatomic, assign) NSInteger senderTag;
@property (nonatomic, assign) BOOL isDisplay;
@property (nonatomic,assign)BOOL flag;//Yes btn的y不加64
@property (nonatomic,assign) int backViewFlag;//1 代表一行 2、3、4 分别代表2、3、4行
@property (nonatomic,assign) BOOL middleFlag;//yes 用箭头在中间的图
+ (DropDownMenu2 *)shareDropDownMenu;
- (void) setDropDownMenuParameterWithcellContents:(NSArray *)contentsArray;
- (void) setDropDownMenuParameterWithcellContents:(NSArray *)contentsArray andWidth:(CGFloat)dropViewWithd;
-(void)hideDropDown:(UIView *)b;
- (void)hidden;


@end
